package com.project8.main;

import java.io.Serializable;

import android.view.View;
import android.widget.EditText;
import android.widget.HorizontalScrollView;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;


public class Tabs implements Serializable
{
	RelativeLayout relativelayout;
	LinearLayout linearlayout2;
	HorizontalScrollView scrollview;
	ImageButton closeNotebook;
	
	public Tabs(RelativeLayout RL, LinearLayout LL2, HorizontalScrollView SV,ImageButton add, LinearLayout notebook)
	{
		
		
		closeNotebook = add;
		relativelayout = RL;
		linearlayout2 = LL2;
		scrollview = SV;
		
		
		if(notebook.getVisibility() == View.GONE)
		{
			closeNotebook.setVisibility(View.GONE);
			relativelayout.setVisibility(View.GONE);
			linearlayout2.setVisibility(View.GONE);
			scrollview.setVisibility(View.GONE);
		}
		else
		{
			closeNotebook.setVisibility(View.VISIBLE);
			relativelayout.setVisibility(View.VISIBLE);
			linearlayout2.setVisibility(View.VISIBLE);
			scrollview.setVisibility(View.VISIBLE);
		}
	}
	
	public void hideTabs ()
	{
		
		closeNotebook.setVisibility(View.GONE);
		relativelayout.setVisibility(View.GONE);
		linearlayout2.setVisibility(View.GONE);
		scrollview.setVisibility(View.GONE);
		
	}
	
	public void showTabs()
	{
		
		closeNotebook.setVisibility(View.VISIBLE);
		relativelayout.setVisibility(View.VISIBLE);
		linearlayout2.setVisibility(View.VISIBLE);
		scrollview.setVisibility(View.VISIBLE);
	}
	
}
	
